// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.chimi.dto.BarCardDto;
import com.liuxinlong.modules.dao.BarCardDao;
import com.liuxinlong.modules.entity.BarCard;
import com.liuxinlong.modules.mapper.BarCardMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2022年7月7日
 */
@Service
public class BarCardDaoImpl extends ServiceImpl<BarCardMapper, BarCard> implements BarCardDao {

    @Override
    public List<BarCardDto> pageBarCardList(Map<String, Object> queryParam) {
        return baseMapper.pageBarCardList(queryParam);
    }

    @Override
    public int getBarCardCount(Map<String, Object> queryParam) {
        return baseMapper.getBarCardCount(queryParam);
    }

    @Override
    public int getCardCountByPlate(String plateId) {
        return baseMapper.getCardCountByPlate(plateId);
    }

    @Override
    public Map<String, Map<String,Object>> getCardCountGroupByPlate() {
        return baseMapper.getCardCountGroupByPlate();
    }

    @Override
    public List<BarCard> getPendingCard(Map<String, Object> queryParam) {
        return baseMapper.getPendingCard(queryParam);
    }

    @Override
    public List<BarCard> pageBarCardManageList(Map<String, Object> queryParam) {
        return baseMapper.pageBarCardManageList(queryParam);
    }

    @Override
    public int getBarCardManageCount(Map<String, Object> queryParam) {
        return baseMapper.getBarCardManageCount(queryParam);
    }

    @Override
    public void updateCardStatus(String id, int status) {
        baseMapper.updateCardStatus(id,status);
    }

    @Override
    public List<BarCard> getBarCardManageList(Map<String, Object> queryParam) {
        return baseMapper.getBarCardManageList(queryParam);
    }

    @Override
    public Map<String, Map<String, String>> getBarCardMap() {
        return baseMapper.getBarCardMap();
    }

    @Override
    public Map<String, Object> getBarCardStatistic() {
        return baseMapper.getBarCardStatistic();
    }
}
